//
//  ZHBaseAVplayerProtocol.h
//  AVPlayer
//
//  Created by 正合适 on 2017/10/28.
//  Copyright © 2017年 正合适. All rights reserved.
//  avplayer代理

#import <Foundation/Foundation.h>
#import "ZHBaseAVPlayerMacro.h"
@class ZHBaseAVPlayerView;

@protocol ZHBaseAVplayerProtocol <NSObject>

@optional
/**
 视频资源加载的状态

 @param avplayerView playerview实例
 @param status 状态
 @param totalTime 视频总时长(加载成功后才有值，其余为0)
 */
- (void)ZHBaseAVplayerView:(ZHBaseAVPlayerView *)avplayerView loadPlayerItemWithStatus:(PlayerItemLoadStatus)status videoTotalTime:(float)totalTime;

/**
 视频播放状态

 @param avplayerView playerview
 @param status 播放状态 播放 暂停 结束
 */
- (void)ZHBaseAVplayerView:(ZHBaseAVPlayerView *)avplayerView playStatus:(PlayerPlayStatus)status;

/**
 视频缓冲时间

 @param avplayerView playerview
 @param bufferTime 缓冲时间 秒
 */
- (void)ZHBaseAVplayerView:(ZHBaseAVPlayerView *)avplayerView videoBufferTime:(float)bufferTime;

/**
 视频播放实时时间

 @param avplayerView playerview
 @param playTime 时间 秒
 */
- (void)ZHBaseAVplayerView:(ZHBaseAVPlayerView *)avplayerView videoPlayTime:(float)playTime;

@end
